package com.kaoshi.T21;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/4/7 14:58
 * @description
 */
public class Test {
    public static void main(String[] args) {
        String str = "性 色情、爆炸、“恐怖”、“枪 军火 等,";
        String guolv = getguolv(str);
        System.out.println("guolv = " + guolv);
    }

    public static String getguolv(String str) {

        String str1 = str.replace("性","*");
        str1 = str1.replace("色情","*");
        str1 = str1.replace("爆炸","*");
        str1 = str1.replace("恐怖","*");
        str1 = str1.replace("枪","*");
        str1 = str1.replace("军火","*");


        return str1;
    }
}
